﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Exhibition.Dao;
using Exhibition.IService;
using   Exhibition.Dao.ViewModel;
namespace Exhibition.Service.Service 

{

  public class  MessageInfoService : IMessageInfoService

    {


     MessageInfoDao dao=new MessageInfoDao();


    #region IMessageInfoService 成员

   public List<E_MessageInfo> GetList(int startIndex, int maxRow, out int recordcount)
     {

       return dao.GetList(startIndex, maxRow,out recordcount);

     }


     #endregion


    #region IMessageInfoService 成员

   public int Save(MessageInfoModel obj)
     {

       return dao.Save(obj);

     }


     #endregion


   #region IMessageInfoService 成员

   public MessageInfoModel GetOneById(int id)
     {

        return dao.GetOneById(id);

     }


     #endregion

   #region IMessageInfoService 成员
   public int DelById(int id)
     {

        return dao.DelById(id);

     }


     #endregion



   public List<MessageInfoModel> GetList(string tit,string curid,int stid, int startIndex, int maxRow, out int record)
   {
       return dao.GetList(tit,curid,stid, startIndex,maxRow,out record);
   }
    }

 }

